<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


$str = 'creationDate';

echo strtolower(preg_replace('/([a-z0-9])([A-Z])/', '\1_\2', $str));

